package com.kyub.spring.gears.model;

import java.util.ArrayList;
import java.util.List;

/**
 * Ancestor for Pojo descriptors
 */
public class AbstractPojoDescriptor {

    private List listFields = new ArrayList();
    private List formFields = new ArrayList();
    private Boolean insertable = true;
    private Boolean editable = true;
    private Boolean deletable = true;
    private String insertableRoles = "ROLE_ANONYMOUS";
    private String deletableRoles = "ROLE_ANONYMOUS";
    private String editableRoles = "ROLE_ANONYMOUS";
    private String allowedRoles = "ROLE_ANONYMOUS";
    private Integer itemsPerPage = 20;

    public List getListFields() {
        return listFields;
    }

    public void setListFields(List listFields) {
        this.listFields = listFields;
    }

    public List getFormFields() {
        return formFields;
    }

    public void setFormFields(List formFields) {
        this.formFields = formFields;
    }

    public Boolean getInsertable() {
        return insertable;
    }

    public void setInsertable(Boolean insertable) {
        this.insertable = insertable;
    }

    public Boolean getEditable() {
        return editable;
    }

    public void setEditable(Boolean editable) {
        this.editable = editable;
    }

    public Boolean getDeletable() {
        return deletable;
    }

    public void setDeletable(Boolean deletable) {
        this.deletable = deletable;
    }

    public String getInsertableRoles() {
        return insertableRoles;
    }

    public void setInsertableRoles(String insertableRoles) {
        this.insertableRoles = insertableRoles;
    }

    public String getDeletableRoles() {
        return deletableRoles;
    }

    public void setDeletableRoles(String deletableRoles) {
        this.deletableRoles = deletableRoles;
    }

    public String getEditableRoles() {
        return editableRoles;
    }

    public void setEditableRoles(String editableRoles) {
        this.editableRoles = editableRoles;
    }

    public String getAllowedRoles() {
        return allowedRoles;
    }

    public void setAllowedRoles(String allowedRoles) {
        this.allowedRoles = allowedRoles;
    }

    public Integer getItemsPerPage() {
        return itemsPerPage;
    }

    public void setItemsPerPage(Integer itemsPerPage) {
        this.itemsPerPage = itemsPerPage;
    }
}
